﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace WXFramework.Model
{
    /// <summary>
    /// 回复图文消息
    /// </summary>
    [XmlRoot("xml")]
    public class ResponseNewsMessage : ResponseMessage
    {
        public ResponseNewsMessage() { }
        public ResponseNewsMessage(RequestMessage request)
            : base(request)
        {
        }
        public override MsgType MsgType
        {
            get { return Model.MsgType.News; }
        }

        public int ArticleCount { get; set; }

        [XmlArrayItem("item")]
        public List<ArticleMessage> Articles { get; set; }
    }
}
//<xml>
//<ToUserName><![CDATA[toUser]]></ToUserName>
//<FromUserName><![CDATA[fromUser]]></FromUserName>
//<CreateTime>12345678</CreateTime>
//<MsgType><![CDATA[news]]></MsgType>
//<ArticleCount>2</ArticleCount>
//<Articles>
//<item>
//<Title><![CDATA[title1]]></Title> 
//<Description><![CDATA[description1]]></Description>
//<PicUrl><![CDATA[picurl]]></PicUrl>
//<Url><![CDATA[url]]></Url>
//</item>
//<item>
//<Title><![CDATA[title]]></Title>
//<Description><![CDATA[description]]></Description>
//<PicUrl><![CDATA[picurl]]></PicUrl>
//<Url><![CDATA[url]]></Url>
//</item>
//</Articles>
//</xml> 